﻿@model gnet1.Models.DaveViewModel
@{
    ViewBag.Title = "Pictures";
    int i = 0;
}
<div style="text-align: center; font-size: 16px">
    <br /> Pictures<br/><br />
</div>
<div id="Main" style="text-align: center">
    @foreach (var item in Model.PictureList)
    {
        string path = "http://" + @Model.Url + "/" + @Model.Folder + "/" + @item;
        //string path = @Model.Folder + "/" + @item;
        <span>@Html.ActionLink(item, "DisplayPicture", "Picture", new { folder = @Model.Folder, pictureUrl = path }, null) &nbsp;</span>
        @*<span><a href=@path>@item</a>&nbsp;</span>*@
        i++;
        if (i % 5 == 0)
        {
            <br />
        }
    }
</div>
<div style="text-align: center; font-size: 16px">
    <br />Videos<br /><br />
</div>
<div id="Main" style="text-align: center">
    @foreach (var item in Model.VideoList)
    {
        string path = "http://" + @Model.Url + "/" + @Model.Folder + "/" + @item;
        <span>@Html.ActionLink(item, "DisplayVideo", "Picture", new { folder = @Model.Folder, videoUrl = path }, null) &nbsp;</span>

        i++;
        if (i % 5 == 0)
        {
            <br />
        }
    }
</div>

